﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class my_cmem_xy : AdminpageBase
{

    protected Model.CMember model;
    protected string ctype = null;
    protected long long_eid = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            inidata();      
        }
    }
    private void inidata()
    {
        string eid = "";
        ctype = ReadRequest.RequestString("t");
        eid = ReadRequest.RequestString("eid");       
       
        try
        {
            if (ctype != null && ctype.Length > 3 && "edit".Equals(ctype))
            {
                long_eid = long.Parse(eid);
                model = BLL.CMember.GetModel(long_eid);
            }
            else
            {
                ctype = "ad";
            }
        }
        catch {
            ctype = "ad";
        }
        if (long_eid < 1)
        {
            ctype = "ad";
        }        
    }
}